﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/MasterPage.master" AutoEventWireup="true"
    CodeFile="Login.aspx.cs" Inherits="Pages_Login" %>

<%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %>
<asp:Content ID="Content" ContentPlaceHolderID="MainContent" runat="Server">
    <center>
    <br /><br />
        <span>Introduceti numele de utilizator si parola. Nu ai cont, <a href='<%$RouteUrl:RouteName=Register%>'
            runat="server"><strong>creaza</strong></a> unul acum.</span>
    <br /><br />
        <asp:Login ID="Login1" runat="server" 
            FailureText="Încercarea dvs. de autentificare nu a avut succes. V&#259; rug&#259;m s&#259; încerca&#355;i din nou." 
            MembershipProvider="FNSecurityProvider"
            Width="377px" onauthenticate="Login_Authenticate" 
            onloggedin="Login1_LoggedIn">
            <LayoutTemplate>
                <table cellpadding="1" cellspacing="0" style="border-collapse: collapse; margin-left: auto;
                    margin-right: auto;">
                    <tr>
                        <td>
                            <table cellpadding="0">
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" >Nume de utilizator:</asp:Label>
                                    </td>
                                    <td >
                                        <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                            ErrorMessage="Introdu numele de utilizator." ToolTip="Introdu numele de utilizator."
                                            ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" >
                                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" >Parola:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                            ErrorMessage="Introdu parola." ToolTip="Introdu parola." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" >
                                        <asp:CheckBox ID="RememberMe" runat="server" Text="Tine-ma minte" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2">
                                        <recaptcha:RecaptchaControl ID="RecaptchaControl" runat="server" PublicKey="6LfLp8MSAAAAAIG9RK-UXWwu2zyaQxQlXIzK42qa"
                                            PrivateKey="6LfLp8MSAAAAANlRuWsEkvh5pORfESE7uiBmMBx4" Theme="white" Enabled="false"
                                            Visible="false" ToolTip=""/>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2">
                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    
                                    <td>
                                        <a href="<%$RouteUrl:RouteName=RecoverPass%>" runat="server">Ai uitat parola?</a>
                                    </td>
                                    <td align="right" colspan="2">
                                        <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Autentifica-ma"
                                            ValidationGroup="Login1"  />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </LayoutTemplate>
        </asp:Login>
    </center>
</asp:Content>
